﻿@model Orchard.ContentFields.ViewModels.EditBooleanFieldViewModel
@using Orchard.ContentFields.Settings;
@{
    var settings = Model.PartFieldDefinition.Settings.ToObject<BooleanFieldSettings>();
}

<fieldset class="form-check">
    <label class="form-check-label">
        <input asp-for="Value" type="checkbox" class="form-check-input content-preview-select" checked="@Model.Value" /> @settings.Label
        @if (!String.IsNullOrEmpty(settings.Hint))
        {
            <span class="hint">@T["— {0}", settings.Hint]</span>
        }
    </label>
</fieldset>
